package com.ruoyi.qymlxin.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * 商品信息对象 shopmsg
 *
 * @author qymlxin
 * @date 2022-05-03
 */
@Entity
public class IShopmsg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Excel(name = "商品数据id")
    private Long id;

    /** 商品图片地址 */
    @Excel(name = "商品图片地址")
    private String imgurl;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String title;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String des;

    /** 商品类型 */
    @Excel(name = "商品类型")
    private String type;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal price;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long num;

    /** 商品附加 */
    @Excel(name = "商品附加")
    private String additional;

    /** 商品规格 */
    @Excel(name = "商品规格")
    private String specifications;

    /** 商品数据码(外键) */
    @Excel(name = "商品数据码(外键)")
    private String shopid;

    public void setId(Long id)
    {
        this.id = id;
    }


    public Long getId()
    {
        return id;
    }
    public void setImgurl(String imgurl)
    {
        this.imgurl = imgurl;
    }

    public String getImgurl()
    {
        return imgurl;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setDes(String des)
    {
        this.des = des;
    }

    public String getDes()
    {
        return des;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setNum(Long num)
    {
        this.num = num;
    }

    public Long getNum()
    {
        return num;
    }
    public void setAdditional(String additional)
    {
        this.additional = additional;
    }

    public String getAdditional()
    {
        return additional;
    }
    public void setSpecifications(String specifications)
    {
        this.specifications = specifications;
    }

    public String getSpecifications()
    {
        return specifications;
    }
    public void setShopid(String shopid)
    {
        this.shopid = shopid;
    }

    public String getShopid()
    {
        return shopid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("imgurl", getImgurl())
                .append("title", getTitle())
                .append("des", getDes())
                .append("type", getType())
                .append("price", getPrice())
                .append("num", getNum())
                .append("additional", getAdditional())
                .append("specifications", getSpecifications())
                .append("shopid", getShopid())
                .toString();
    }
}